# 定义一个函数
def demofunc():
    pass


demofunc()


def myfunc():
    for i in range(3):
        print("I love FishC")


myfunc()


# 函数的参数
def myfunc2(name):
    for i in range(3):
        print(F"I love {name}.")


myfunc2("swordPig")


def myfunc3(name, times):
    for i in range(times):
        print(F"I love {name}.")


myfunc3("猪肉", 4)


# 返回值
def div(x, y):
    if y == 0:
        return "除数不能为0！"
    return x / y


print(div(4, 1))
print(demofunc())  # None
